//
//  HJInformationPresent.h
//  KaiChat
//
//  Created by lx on 2024/3/13.
//

#import <Foundation/Foundation.h>
#import "HJInformationModel.h"
#import "HJFollowModel.h"
#import "HJChatUserModel.h"


NS_ASSUME_NONNULL_BEGIN

@interface HJInformationPresent : NSObject


+ (void)followUser:(NSString *)userId complete:(void (^__nullable)(NSError * _Nullable error))complete;
+ (void)loadNewsTagsListWithTypeNewsTypeId:(NSInteger)newsTypeId complete:(void (^__nullable)(NSArray * _Nullable datas))complete;

+ (void)loadNewsListWithType:(NSInteger)type newsTypeId:(NSInteger)newsTypeId tags:(nullable NSString *)tags pageIndex:(NSInteger)pageIndex complete:(void (^__nullable)(NSInteger serverPageSize, NSArray <HJInformationModel *>* _Nullable news,  NSArray <HJFollowModel *>* _Nullable recommendUsers, NSError * _Nullable error))complete;
+ (void)postNewsWithTitle:(nullable NSString *)title content:(NSString *)content images:(nullable NSArray *)images videos:(nullable NSArray *)videos complete:(void (^__nullable)(NSError * _Nullable error))complete;


+ (void)loadRecommendUsersDataComplete:(void (^__nullable)(NSArray <HJFollowModel *>* _Nullable recommendList))complete;
+ (void)updateUserTagsWithTypeNewsTypeId:(NSInteger)newsTypeId tagId:(NSInteger)tagId isAdd:(BOOL)isAdd complete:(void (^__nullable)(NSError * _Nullable error))complete;
+ (void)loadModuleListDataComplete:(void (^__nullable)(NSArray * _Nullable datas))complete;

+ (void)newsLikeWithType:(NSInteger)type newsId:(NSString *)newsId isLike:(BOOL)isLike complete:(void (^__nullable)(NSError * _Nullable error))complete;
+ (void)statisticsUserShareDataWithType:(NSInteger)type newsId:(NSString *)newsId complete:(void (^__nullable)(NSError * _Nullable error))complete;
+ (void)deletePostDataWithNewsId:(NSString *)newsId complete:(void (^__nullable)(NSError * _Nullable error))complete;
+ (void)hidePostDataWithNewsId:(NSString *)newsId complete:(void (^__nullable)(NSError * _Nullable error))complete;
+ (void)statisticsNew_7_24ViewDataWithType:(NSInteger)type newsIds:(NSArray *)newsIds complete:(void (^__nullable)(NSError * _Nullable error))complete;
+ (void)loadUserHomePageDataWithUserId:(NSString *)userId complete:(void (^__nullable)(HJChatUserModel * _Nullable userModel))complete;
+ (void)loadNewswDataWithType:(NSInteger)type newsId:(NSString *)newsId complete:(void (^__nullable)(NSDictionary * _Nullable data))complete;
+ (void)loadHomeNewsListWithUserId:(NSString *)userId type:(NSInteger)type  pageIndex:(NSInteger)pageIndex complete:(void (^__nullable)(NSInteger totalCount, NSArray <HJInformationModel *>* _Nullable news, NSError * _Nullable error))complete;
+ (void)loadNewsStatisticsDataWithType:(NSInteger)type newsId:(NSString *)newsId complete:(void (^__nullable)(NSDictionary * _Nullable data))complete;


@end

NS_ASSUME_NONNULL_END
